let db = {
    list: [{
            id: 0,
            title: "青春文学",
            children: [{
                    id: "0-0",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/09/14/FuIAVWxrhdT2G8TAMe_v7sqGAppW.jpg!middle.webp",
                    title: "《素年不相迟2(全二册)》结局+豪华番外，赠精美场景海报",
                    desc: "一段梦境谜局，一桩诡谲悬案，一场博弈人心的悬疑爱情。终极结局 + 豪华番外！",
                    price: 47.60,
                    extra: 23.7
                },
                {
                    id: "0-1",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FnD0LGrj93OMo3Mx1bHGD1l9LAAg.jpg!middle.webp",
                    title: "《素年不相迟(全二册)》赠精美人物折立卡",
                    desc: "梦境，是上帝赋予人类的秘密，是时间抹不掉的证据。梦境分析师 VS 钻石制造商。",
                    price: 47.60,
                    extra: 13.6
                }, {
                    id: "0-2",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FoJtSJ_OQalSr5gWtfKtV--w7BlG.jpg!middle.webp",
                    title: "《有生之年,狭路相逢终章》赠唯美“捕梦卡”， 七则惊喜番外，还有后记",
                    desc: "有生之年，殇离别；狭路相逢，再遇见；生命来来往往，只有你在身边，才所谓来日方长。",
                    price: 27.86,
                    extra: 7.96
                }, {
                    id: "0-3",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FlaXvcnOQOhW2p3-GW2lVabiJYSt.jpg!middle.webp",
                    title: "《素年不相迟2(全二册)》结局+豪华番外，赠精美场景海报",
                    desc: "一段梦境谜局，一桩诡谲悬案，一场博弈人心的悬疑爱情。终极结局 + 豪华番外！",
                    price: 47.60,
                    extra: 23.7
                }, {
                    id: "0-4",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/Fpv4hbJafDUAB0MKV7QtTcCSUHSq.jpg!middle.webp",
                    title: "《致命圆桌》赠青鸟小队Q版解谜互动卡、圆桌游戏精美通关道具卡",
                    desc: "（《媲美《死亡万花筒》的恐怖逃生游戏！双男主无限流入坑必读神作！全新沉浸游戏体验！共赴纸上冒险盛宴！神秘精分大佬×高能游戏新人，叩启地狱死境之门！附赠：青鸟小队Q版互动卡+圆桌游戏通关道具卡。",
                    price: 32.30,
                    extra: 12.4
                }, {
                    id: "0-5",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2020/12/17/FoWV9dhaIUFhsDll-w9fqXaGVnWt.jpg!middle.webp",
                    title: "《寒远》高人气作家池总渣备受期待力作！媲美《撒野》《某某》的校园青春故事",
                    desc: "高人气作家池总渣备受期待力作！媲美《撒野》《某某》的校园青春故事！知名画师炎久亲绘封面图！随书附赠人物海报+两张Q萌立卡+书签！",
                    price: 27.86,
                    extra: 16.96
                }
            ]
        },
        {
            id: 1,
            title: "小说",
            children: [{
                    id: "1-0",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/09/14/FuIAVWxrhdT2G8TAMe_v7sqGAppW.jpg!middle.webp",
                    title: "【后浪插图经典系列作品套装】恶之花+牧歌+莎士比亚爱情诗集",
                    desc: "一段梦境谜局，一桩诡谲悬案，一场博弈人心的悬疑爱情。终极结局 + 豪华番外！",
                    price: 47.60,
                    extra: 23.7
                },
                {
                    id: "1-1",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/08/18/FqDxSMLGhSiKe0h7qkIsHoZepKni.jpg!middle.webp",
                    title: "《素年不相迟(全二册)》赠精美人物折立卡",
                    desc: "梦境，是上帝赋予人类的秘密，是时间抹不掉的证据。梦境分析师 VS 钻石制造商。",
                    price: 47.60,
                    extra: 13.6
                }, {
                    id: "1-2",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/08/31/FtfN52VA25Z9Gddfk3LqQXEjEFhM.jpg!middle.webp",
                    title: "《有生之年,狭路相逢终章》赠唯美“捕梦卡”， 七则惊喜番外，还有后记",
                    desc: "有生之年，殇离别；狭路相逢，再遇见；生命来来往往，只有你在身边，才所谓来日方长。",
                    price: 27.86,
                    extra: 7.96
                }, {
                    id: "1-3",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/08/31/FtfN52VA25Z9Gddfk3LqQXEjEFhM.jpg!middle.webp",
                    title: "《素年不相迟2(全二册)》结局+豪华番外，赠精美场景海报",
                    desc: "一段梦境谜局，一桩诡谲悬案，一场博弈人心的悬疑爱情。终极结局 + 豪华番外！",
                    price: 47.60,
                    extra: 23.7
                }, {
                    id: "1-4",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FqIKfskg9Rsr2T_a6xPVktRrt7WG.jpg!middle.webp",
                    title: "《致命圆桌》赠青鸟小队Q版解谜互动卡、圆桌游戏精美通关道具卡",
                    desc: "（《媲美《死亡万花筒》的恐怖逃生游戏！双男主无限流入坑必读神作！全新沉浸游戏体验！共赴纸上冒险盛宴！神秘精分大佬×高能游戏新人，叩启地狱死境之门！附赠：青鸟小队Q版互动卡+圆桌游戏通关道具卡。",
                    price: 32.30,
                    extra: 12.4
                }, {
                    id: "1-5",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FuJZsrOxOrX1JrdmBRM64MjCQRmn.jpg!middle.webp",
                    title: "《寒远》高人气作家池总渣备受期待力作！媲美《撒野》《某某》的校园青春故事",
                    desc: "高人气作家池总渣备受期待力作！媲美《撒野》《某某》的校园青春故事！知名画师炎久亲绘封面图！随书附赠人物海报+两张Q萌立卡+书签！",
                    price: 27.86,
                    extra: 16.96
                }
            ]
        },
        {
            id: 2,
            title: "经管励志",
            children: [{
                    id: "2-0",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/12/09/FrBbj2ydogEt3JZbkoluubbwa7I9.png!middle.webp",
                    title: "《素年不相迟2(全二册)》结局+豪华番外，赠精美场景海报",
                    desc: "一段梦境谜局，一桩诡谲悬案，一场博弈人心的悬疑爱情。终极结局 + 豪华番外！",
                    price: 47.60,
                    extra: 23.7
                },
                {
                    id: "2-1",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FmiYYmmIseqKe7HQBmVJ2UVdXyMP.jpg!middle.webp",
                    title: "《素年不相迟(全二册)》赠精美人物折立卡",
                    desc: "梦境，是上帝赋予人类的秘密，是时间抹不掉的证据。梦境分析师 VS 钻石制造商。",
                    price: 47.60,
                    extra: 13.6
                }, {
                    id: "2-2",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/Fobzb82ZAoh1byy7U6EAFiyRNJ9k.jpg!middle.webp",
                    title: "《有生之年,狭路相逢终章》赠唯美“捕梦卡”， 七则惊喜番外，还有后记",
                    desc: "有生之年，殇离别；狭路相逢，再遇见；生命来来往往，只有你在身边，才所谓来日方长。",
                    price: 27.86,
                    extra: 7.96
                }, {
                    id: "2-3",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2020/09/04/FqERGnfwRS7wl7a6s5slDd1nkvU_.jpg!middle.webp",
                    title: "《素年不相迟2(全二册)》结局+豪华番外，赠精美场景海报",
                    desc: "一段梦境谜局，一桩诡谲悬案，一场博弈人心的悬疑爱情。终极结局 + 豪华番外！",
                    price: 47.60,
                    extra: 23.7
                }, {
                    id: "2-4",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2020/09/07/FrhS0u16KjpN_Auui_XdORLshLWJ.jpg!middle.webp",
                    title: "《致命圆桌》赠青鸟小队Q版解谜互动卡、圆桌游戏精美通关道具卡",
                    desc: "（《媲美《死亡万花筒》的恐怖逃生游戏！双男主无限流入坑必读神作！全新沉浸游戏体验！共赴纸上冒险盛宴！神秘精分大佬×高能游戏新人，叩启地狱死境之门！附赠：青鸟小队Q版互动卡+圆桌游戏通关道具卡。",
                    price: 32.30,
                    extra: 12.4
                }, {
                    id: "2-5",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2020/09/07/Fo5d-1ymxqYvFISwfE7REDzqltob.jpg!middle.webp",
                    title: "《寒远》高人气作家池总渣备受期待力作！媲美《撒野》《某某》的校园青春故事",
                    desc: "高人气作家池总渣备受期待力作！媲美《撒野》《某某》的校园青春故事！知名画师炎久亲绘封面图！随书附赠人物海报+两张Q萌立卡+书签！",
                    price: 27.86,
                    extra: 16.96
                }
            ]
        },
        {
            id: 3,
            title: "科普",
            children: [{
                    id: "3-0",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/12/22/Fpg8DpfDKLLE-dY-mdnmwfdWs1zG.jpg!middle.webp",
                    title: "《素年不相迟2(全二册)》结局+豪华番外，赠精美场景海报",
                    desc: "一段梦境谜局，一桩诡谲悬案，一场博弈人心的悬疑爱情。终极结局 + 豪华番外！",
                    price: 47.60,
                    extra: 23.7
                },
                {
                    id: "3-1",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FiO57xSXZrmk4qm3UAZj-MPh_qMr.jpg!middle.webp",
                    title: "《素年不相迟(全二册)》赠精美人物折立卡",
                    desc: "梦境，是上帝赋予人类的秘密，是时间抹不掉的证据。梦境分析师 VS 钻石制造商。",
                    price: 47.60,
                    extra: 13.6
                }, {
                    id: "3-2",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FoJtSJ_OQalSr5gWtfKtV--w7BlG.jpg!middle.webp",
                    title: "《有生之年,狭路相逢终章》赠唯美“捕梦卡”， 七则惊喜番外，还有后记",
                    desc: "有生之年，殇离别；狭路相逢，再遇见；生命来来往往，只有你在身边，才所谓来日方长。",
                    price: 27.86,
                    extra: 7.96
                }, {
                    id: "3-3",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FlaXvcnOQOhW2p3-GW2lVabiJYSt.jpg!middle.webp",
                    title: "《素年不相迟2(全二册)》结局+豪华番外，赠精美场景海报",
                    desc: "一段梦境谜局，一桩诡谲悬案，一场博弈人心的悬疑爱情。终极结局 + 豪华番外！",
                    price: 47.60,
                    extra: 23.7
                }, {
                    id: "3-4",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2020/09/04/FoV2wX0yrWIbGHfCcKm1jo3SQZO6.jpg!middle.webp",
                    title: "《致命圆桌》赠青鸟小队Q版解谜互动卡、圆桌游戏精美通关道具卡",
                    desc: "（《媲美《死亡万花筒》的恐怖逃生游戏！双男主无限流入坑必读神作！全新沉浸游戏体验！共赴纸上冒险盛宴！神秘精分大佬×高能游戏新人，叩启地狱死境之门！附赠：青鸟小队Q版互动卡+圆桌游戏通关道具卡。",
                    price: 32.30,
                    extra: 12.4
                }, {
                    id: "3-5",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2020/09/04/Fg3Ob5I2lurCkfW1dhOTDWFLO3LA.jpg!middle.webp",
                    title: "《寒远》高人气作家池总渣备受期待力作！媲美《撒野》《某某》的校园青春故事",
                    desc: "高人气作家池总渣备受期待力作！媲美《撒野》《某某》的校园青春故事！知名画师炎久亲绘封面图！随书附赠人物海报+两张Q萌立卡+书签！",
                    price: 27.86,
                    extra: 16.96
                }
            ]
        },
        {
            id: 4,
            title: "生活艺术",
            children: [{
                    id: "4-0",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2022/02/17/FlWf5_xbZKtHPNfzpFY8aaXhHYZs.jpg!middle.webp",
                    title: "《素年不相迟2(全二册)》结局+豪华番外，赠精美场景海报",
                    desc: "一段梦境谜局，一桩诡谲悬案，一场博弈人心的悬疑爱情。终极结局 + 豪华番外！",
                    price: 47.60,
                    extra: 23.7
                },
                {
                    id: "4-1",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FnD0LGrj93OMo3Mx1bHGD1l9LAAg.jpg!middle.webp",
                    title: "《素年不相迟(全二册)》赠精美人物折立卡",
                    desc: "梦境，是上帝赋予人类的秘密，是时间抹不掉的证据。梦境分析师 VS 钻石制造商。",
                    price: 47.60,
                    extra: 13.6
                }, {
                    id: "4-2",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/12/17/FkXiTwJ3KcsRoRwGo48QDCiVxoZp.jpg!middle.webp",
                    title: "《有生之年,狭路相逢终章》赠唯美“捕梦卡”， 七则惊喜番外，还有后记",
                    desc: "有生之年，殇离别；狭路相逢，再遇见；生命来来往往，只有你在身边，才所谓来日方长。",
                    price: 27.86,
                    extra: 7.96
                }, {
                    id: "4-3",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/10/27/Fp70Jspc5tTbb0CWQMcUWHK8jdPA.jpg!middle.webp",
                    title: "《素年不相迟2(全二册)》结局+豪华番外，赠精美场景海报",
                    desc: "一段梦境谜局，一桩诡谲悬案，一场博弈人心的悬疑爱情。终极结局 + 豪华番外！",
                    price: 47.60,
                    extra: 23.7
                }, {
                    id: "4-4",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/10/08/FiKZAenXNyd3lSaa8R7Xd8bKvdnq.jpg!middle.webp",
                    title: "《致命圆桌》赠青鸟小队Q版解谜互动卡、圆桌游戏精美通关道具卡",
                    desc: "（《媲美《死亡万花筒》的恐怖逃生游戏！双男主无限流入坑必读神作！全新沉浸游戏体验！共赴纸上冒险盛宴！神秘精分大佬×高能游戏新人，叩启地狱死境之门！附赠：青鸟小队Q版互动卡+圆桌游戏通关道具卡。",
                    price: 32.30,
                    extra: 12.4
                }, {
                    id: "4-5",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/07/06/FqDw_oOY-j1ZF0VviAXZcKMastRe.png!middle.webp",
                    title: "《寒远》高人气作家池总渣备受期待力作！媲美《撒野》《某某》的校园青春故事",
                    desc: "高人气作家池总渣备受期待力作！媲美《撒野》《某某》的校园青春故事！知名画师炎久亲绘封面图！随书附赠人物海报+两张Q萌立卡+书签！",
                    price: 27.86,
                    extra: 16.96
                }
            ]
        },
        {
            id: 5,
            title: "动漫幽默",
            children: [{
                    id: "5-0",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/09/14/FuIAVWxrhdT2G8TAMe_v7sqGAppW.jpg!middle.webp",
                    title: "《素年不相迟2(全二册)》结局+豪华番外，赠精美场景海报",
                    desc: "一段梦境谜局，一桩诡谲悬案，一场博弈人心的悬疑爱情。终极结局 + 豪华番外！",
                    price: 47.60,
                    extra: 23.7
                },
                {
                    id: "5-1",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FiO57xSXZrmk4qm3UAZj-MPh_qMr.jpg!middle.webp",
                    title: "《素年不相迟(全二册)》赠精美人物折立卡",
                    desc: "梦境，是上帝赋予人类的秘密，是时间抹不掉的证据。梦境分析师 VS 钻石制造商。",
                    price: 47.60,
                    extra: 13.6
                }, {
                    id: "5-2",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FoJtSJ_OQalSr5gWtfKtV--w7BlG.jpg!middle.webp",
                    title: "《有生之年,狭路相逢终章》赠唯美“捕梦卡”， 七则惊喜番外，还有后记",
                    desc: "有生之年，殇离别；狭路相逢，再遇见；生命来来往往，只有你在身边，才所谓来日方长。",
                    price: 27.86,
                    extra: 7.96
                }, {
                    id: "5-3",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/FlaXvcnOQOhW2p3-GW2lVabiJYSt.jpg!middle.webp",
                    title: "《素年不相迟2(全二册)》结局+豪华番外，赠精美场景海报",
                    desc: "一段梦境谜局，一桩诡谲悬案，一场博弈人心的悬疑爱情。终极结局 + 豪华番外！",
                    price: 47.60,
                    extra: 23.7
                }, {
                    id: "5-4",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2021/06/08/Fpv4hbJafDUAB0MKV7QtTcCSUHSq.jpg!middle.webp",
                    title: "《致命圆桌》赠青鸟小队Q版解谜互动卡、圆桌游戏精美通关道具卡",
                    desc: "（《媲美《死亡万花筒》的恐怖逃生游戏！双男主无限流入坑必读神作！全新沉浸游戏体验！共赴纸上冒险盛宴！神秘精分大佬×高能游戏新人，叩启地狱死境之门！附赠：青鸟小队Q版互动卡+圆桌游戏通关道具卡。",
                    price: 32.30,
                    extra: 12.4
                }, {
                    id: "5-5",
                    imgsrc: "https://img01.yzcdn.cn/upload_files/2020/12/17/FoWV9dhaIUFhsDll-w9fqXaGVnWt.jpg!middle.webp",
                    title: "《寒远》高人气作家池总渣备受期待力作！媲美《撒野》《某某》的校园青春故事",
                    desc: "高人气作家池总渣备受期待力作！媲美《撒野》《某某》的校园青春故事！知名画师炎久亲绘封面图！随书附赠人物海报+两张Q萌立卡+书签！",
                    price: 27.86,
                    extra: 16.96
                }
            ]
        }
    ],
    "pagesSwiper": [{
            "id": 0,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2021/10/08/FiKZAenXNyd3lSaa8R7Xd8bKvdnq.jpg!large.webp"
        },
        {
            "id": 1,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2021/10/18/Fj6Df776H3Vqnq7FauY5ntHZkGOW.jpg!large.webp"
        },
        {
            "id": 2,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2021/06/16/FoYn8cRAlnv3Asohg_R8H2v2DfuC.jpg!large.webp"
        },
        {
            "id": 3,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2021/06/16/FmwJVyXJw1E8K4uRspCtwxzLL5DY.jpg!large.webp"
        },
        {
            "id": 4,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2021/06/16/FquEqphL2UoHrYd9aXsT4piGnX4K.jpg!large.webp"
        }
    ],
    "new": [{
        "id": 0,
        "imgsrc": "https://img01.yzcdn.cn/upload_files/2021/06/16/FquEqphL2UoHrYd9aXsT4piGnX4K.jpg!large.webp",
        "title": "《致命圆桌》双男主无限流Bi读神作",
        "oldprice": "49.8",
        "newprice": "32.3",
        "vipprice": "19.9"
    }],
    "newlist": [{
            "id": 0,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2021/06/08/FltG79gOuoCGLltc0E8apLKYOdhs.png!large.webp",
            "title": "《春河》",
            "price": "19.9"
        },
        {
            "id": 1,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2021/06/08/Fobzb82ZAoh1byy7U6EAFiyRNJ9k.jpg!large.webp",
            "title": "《走下去，便是前程万里》",
            "price": "18.9"
        }
    ],
    "hot": [{
        "id": 0,
        "imgsrc": "https://img01.yzcdn.cn/upload_files/2021/06/16/FmwJVyXJw1E8K4uRspCtwxzLL5DY.jpg!large.webp",
        "title": "《轻狂1+2套装》撒野热血兄弟篇",
        "oldprice": "94.8",
        "newprice": "65",
        "vipprice": "29.9"
    }],
    "hotlist": [{
            "id": 0,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2020/12/17/FoWV9dhaIUFhsDll-w9fqXaGVnWt.jpg!large.webp",
            "title": "《寒远》",
            "price": "10.9"
        },
        {
            "id": 1,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2020/09/04/FuNiC3kxjub4HOXUuYK5xIlj-5IZ.jpg!large.webp",
            "title": "《所有深爱的，都是秘密》",
            "price": "17.9"
        },
        {
            "id": 2,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2021/06/08/FgNkyCLOTWybY4FtRuu5N8DOSmqI.jpg!large.webp",
            "title": "《素年不相迟2》",
            "price": "23.9"
        },
        {
            "id": 3,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2020/09/07/FuiqiWsMkbOEQTkbX8-tWiITHV_q.jpg!large.webp",
            "title": "《沉睡时光里的爱》",
            "price": "18.8"
        },
    ],
    "my": [{
        "id": 0,
        "imgsrc": "https://img01.yzcdn.cn/upload_files/2021/10/18/Fj6Df776H3Vqnq7FauY5ntHZkGOW.jpg!large.webp",
        "title": "《人间清醒》茅盾文学奖获得者",
        "oldprice": "49.8",
        "newprice": "24.3",
        "vipprice": "13.9"
    }],
    "mylist": [{
            "id": 0,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2020/11/25/FqbUrqIUBPbftdv8m7QLPz9YNrLB.png!large.webp",
            "title": "《让你的时间多一倍》",
            "price": "16.9"
        },
        {
            "id": 1,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2020/09/04/FjfBrtBldnvfz3Mjb76tvgI8hVxA.jpg!large.webp",
            "title": "《不赶时髦星球》",
            "price": "22.9"
        },
        {
            "id": 2,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2020/09/07/FmH1zGVYO3OfGaNBN3-WXJ0vWqVP.jpg!large.webp",
            "title": "《定位：打造属于自己的职场人生》",
            "price": "35.8"
        },
        {
            "id": 3,
            "imgsrc": "https://img01.yzcdn.cn/upload_files/2021/06/08/FnP_8C5ooxKyrr2mazmC3-XRhFBc.jpg!large.webp",
            "title": "《情绪自由》",
            "price": "12.5"
        },
    ],
    orders: [{
            img: 'https://b.yzcdn.cn/public_files/2019/04/28/1be3ce61d72286c7ac6e56fbb7d0735c.svg',
            text: "代付款"
        },
        {
            img: 'https://b.yzcdn.cn/public_files/2019/04/28/72cc80f8b65eae45862cafe0d27e78f7.svg',
            text: "代发货"
        }, {
            img: '	https://b.yzcdn.cn/public_files/2019/04/28/d729a66ef2fe52dd47ae6998921b43fe.svg',
            text: "待收货"
        }, {
            img: 'https://b.yzcdn.cn/public_files/2019/04/28/a4a60cccd63f9d3ff476cb22f51146d7.svg',
            text: "待评价"
        }, {
            img: '	https://b.yzcdn.cn/public_files/2019/04/28/15ed25836631717b7ff77266a1795328.svg',
            text: "退款/售后"
        }
    ],
    banners: [{
            img: 'https://img01.yzcdn.cn/public_files/2019/02/11/32797a1cb932093cc5ad9301a1ed2493.png',
            text: "购物车"
        },
        {
            img: 'https://img01.yzcdn.cn/public_files/2019/03/19/f9c1b3cb9e4f7ec7909e180ae2efbb6c.png',
            text: "任务中心"
        }, {
            img: 'https://img01.yzcdn.cn/public_files/2019/02/11/b8b15daf68cd0b3b1a703ea3cd19892e.png',
            text: "荐书官中心"
        }, {
            img: 'https://img01.yzcdn.cn/public_files/2019/02/11/76b2b4d6e16887bb8cdb42b5e97eaded.png',
            text: "返现"
        },
        {
            img: '	https://img01.yzcdn.cn/public_files/2019/02/11/fba880e26352425d9819c0d7be1693ef.png',
            text: "赠品"
        }, {
            img: '	https://img01.yzcdn.cn/public_files/2019/02/11/62fd9f26f0db12999419960a914cd32c.png',
            text: "收货地址"
        }, {
            img: '	https://img01.yzcdn.cn/public_files/2019/02/11/d12a725fd93576ac0e51294f13df52f5.png',
            text: "账号与安全"
        }, {
            img: 'https://img01.yzcdn.cn/public_files/2019/03/19/77b91dd266a2b452dc18a192ee709f0d.png',
            text: "个人信息"
        }
    ],
    bottoms: [{
            img: '	https://img01.yzcdn.cn/upload_files/2021/03/05/Fi_yxtvUktDtLMdXFR0lnoGFxV-m.jpg!middle.webp',
            text: '《普通人的财富战斗》启牛商学院兑...',
            price: "38.9",
            title: "本店销量榜第1"
        },
        {
            img: '	https://img01.yzcdn.cn/upload_files/2021/12/22/Fpg8DpfDKLLE-dY-mdnmwfdWs1zG.jpg!middle.webp',
            text: '《让你的时间多一倍》零意志力秒做...',
            price: "88.9",
        },
        {
            img: 'https://img01.yzcdn.cn/upload_files/2021/12/22/Fpg8DpfDKLLE-dY-mdnmwfdWs1zG.jpg!middle.webp',
            text: '《漫画欧洲史： 了不起的古希腊》 ',
            price: "36.6",
            title: "本店销量榜第5"
        },
        {
            img: 'https://img01.yzcdn.cn/upload_files/2022/03/30/FjcSDiWgJzdpbU920EbM4y44w3_f.jpg!middle.webp',
            text: '知乎版十万个为什么（全十册） 3岁+ ...',
            price: "38",
            title: "本店销量榜第3"
        },
        {
            img: 'https://img01.yzcdn.cn/upload_files/2020/09/07/FuiqiWsMkbOEQTkbX8-tWiITHV_q.jpg!middle.webp',
            text: '沉睡时光里的爱》设定独特天马行空...',
            price: "34",
            title: "本店销量榜第2"
        },
        {
            img: 'https://img01.yzcdn.cn/upload_files/2021/06/08/FiO57xSXZrmk4qm3UAZj-MPh_qMr.jpg!middle.webp',
            text: '这屁股我不要了！你不知道的动物科学',
            price: "18.9",
            title: "本店销量榜第4"
        },
        {
            img: 'https://img01.yzcdn.cn/upload_files/2020/11/09/FiClwQGmS_32WeIu4FvDD43_eaFd.jpg!middle.webp',
            text: '《轻狂2》赠人物海报+双面卡册+Q萌...',
        }, {
            img: '	https://img01.yzcdn.cn/upload_files/2021/03/05/Fi_yxtvUktDtLMdXFR0lnoGFxV-m.jpg!middle.webp',
            text: '《普通人的财富战斗》启牛商学院兑...',
            price: "38.9",
            title: "本店销量榜第7"
        },
        {
            img: '	https://img01.yzcdn.cn/upload_files/2021/12/22/Fpg8DpfDKLLE-dY-mdnmwfdWs1zG.jpg!middle.webp',
            text: '《让你的时间多一倍》零意志力秒做决...',
            price: "88.9",
            title: "本店销量榜第6"
        },
        {
            img: 'https://img01.yzcdn.cn/upload_files/2022/03/30/FjcSDiWgJzdpbU920EbM4y44w3_f.jpg!middle.webp',
            text: '知乎版十万个为什么（全十册） 3岁+...',
            price: "38",
        },
        {
            img: 'https://img01.yzcdn.cn/upload_files/2020/09/07/FuiqiWsMkbOEQTkbX8-tWiITHV_q.jpg!middle.webp',
            text: '沉睡时光里的爱》设定独特天马行空...',
            price: "34",
        },
        {
            img: 'https://img01.yzcdn.cn/upload_files/2021/06/08/FiO57xSXZrmk4qm3UAZj-MPh_qMr.jpg!middle.webp',
            text: '这屁股我不要了！你不知道的动物科学',
            price: "18.9",
        },
        {
            img: '	https://img01.yzcdn.cn/upload_files/2021/12/22/Fpg8DpfDKLLE-dY-mdnmwfdWs1zG.jpg!middle.webp',
            text: '《让你的时间多一倍》零意志力秒做决...',
            price: "88.9",
            title: "本店销量榜第6"
        },
        {
            img: 'https://img01.yzcdn.cn/upload_files/2022/03/30/FjcSDiWgJzdpbU920EbM4y44w3_f.jpg!middle.webp',
            text: '知乎版十万个为什么（全十册） 3岁+...',
            price: "38",
        },
        {
            img: 'https://img01.yzcdn.cn/upload_files/2020/09/07/FuiqiWsMkbOEQTkbX8-tWiITHV_q.jpg!middle.webp',
            text: '沉睡时光里的爱》设定独特天马行空...',
            price: "34",
        },
        {
            img: 'https://img01.yzcdn.cn/upload_files/2021/06/08/FiO57xSXZrmk4qm3UAZj-MPh_qMr.jpg!middle.webp',
            text: '这屁股我不要了！你不知道的动物科学',
            price: "18.9",
        }
    ],
    address: [],
    pay:[]
}

const Koa = require("koa")
const app = new Koa();
const router = require("koa-Router")()
const koabody = require("koa-body")
app.use(koabody())

// app.use((ctx) => {
//     ctx.body = "hello seec3"
// })
router.get("/data", (ctx) => {
    ctx.body = {
        data: db,
        message: "success",
        status: 200,
        success: "success"
    }
})
router.get("/pagesSwiper", (ctx) => {
    ctx.body = {
        data: db.pagesSwiper,
        message: "success",
        status: 200
    }
})
router.get("/new", (ctx) => {
    ctx.body = {
        data: db.new,
        message: "success",
        status: 200
    }
})
router.get("/newlist", (ctx) => {
    ctx.body = {
        data: db.newlist,
        message: "success",
        status: 200
    }
})
router.get("/hot", (ctx) => {
    ctx.body = {
        data: db.hot,
        message: "success",
        status: 200
    }
})
router.get("/hotlist", (ctx) => {
    ctx.body = {
        data: db.hotlist,
        message: "success",
        status: 200
    }
})
router.get("/my", (ctx) => {
    ctx.body = {
        data: db.my,
        message: "success",
        status: 200
    }
})
router.get("/mylist", (ctx) => {
    ctx.body = {
        data: db.mylist,
        message: "success",
        status: 200
    }
})
router.post('/saveaddress', (ctx) => {
    console.log(ctx.request.body);
    let address = ctx.request.body
    db.addresses.push(address)
    ctx.body = {
        data: address,
        message: "地址保持成功",
        status: 200,
        success: 'success'
    }
})
router.post('/saveaddress', (ctx) => {
    console.log(ctx.request.body)
    let address = ctx.request.body
    db.addresses.push(address)
    ctx.body = {
        data: db.addresses,
        message: "地址保存成功",
        status: 200,
        success: "success"
    }
})
router.post("/pay", (ctx) => {
    let order_nums = ctx.request.body
    db.pay.push(order_nums)
    ctx.body = {
        data: order_nums,
        message: "支付成功",
        status: 200,
        success: "success"
    }
})
app.use(router)
app.listen(2000)